home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Misc / NewFile / Source / Server.h < prev    next >
Text File  |  1992-11-11  |  1KB  |  49 lines

  1.  
  2. /* Generated by Interface Builder */
  3.  
  4. #import <objc/Object.h>
  5.  
  6. //     --------------------------------------------------------
  7. // Server is the object responsible for handling service requests.
  8. //     --------------------------------------------------------
  9.  
  10. @interface Server:Object
  11. {
  12.     // The pop-up-list typelist is on the button listbase.
  13.     id    typelist;
  14.     id    listbase;
  15.     id    main;
  16.     id    auxview;
  17.     id    protos;
  18.     id    openineditor;
  19.     id    defaultopen;
  20.     id    savepanel;
  21. }
  22.  
  23. // Add a type to the list.
  24. - addtype:(char *)name;
  25.  
  26. // Set up the type list from the list of proto's.
  27. - inittypes:list;
  28.  
  29. /*
  30. If path is a directory, then dir is a copy of path. Otherwise, dir contains the directory part of path.
  31. */
  32. void get_directory(char *dir, char *path);
  33.  
  34. // When service is activated, the current directory is in the pasteboard.
  35. - get_dir_from_pb:(char *)dir:(id)pb;
  36.  
  37. /*
  38. Set the type of the file to be created. Sets the save panel's type and sets the type pop-up-list and open default.
  39. */
  40. - setfiletype:(char *)typename;
  41.  
  42. // Called when the user selects a type in the pop-up-list.
  43. - settype:sender;
  44.  
  45. // Handle service requests. The string udata is the typename..
  46. - createNew:(id)pb userData:(const char *)udata error:(char **)ermsg;
  47.  
  48. @end
  49.